package com.time.admin.domain.constants;

/**
 * 异常错误码类
 *
 * @author: HuangQi
 * @date: Created in 10:45 2025/10/10
 * @description: 异常错误码
 */
public class ExceptionCode {

    /**
     * 分类已存在异常码
     */
    public static final String CATEGORY_ALREADY_EXISTS = "20001";

    /**
     * 分类不存在异常码
     */
    public static final String CATEGORY_NOT_EXISTS = "20002";

    /**
     * 标签已存在异常码
     */
    public static final String TAG_ALREADY_EXISTS = "20101";

    /**
     * 标签已存在异常码
     */
    public static final String TAG_NOT_EXISTS = "20102";

    /**
     * 文章分类关联关系已存在异常码
     */
    public static final String POST_CATEGORY_RELATION_EXISTS = "20201";

    /**
     * 文章分类关联关系文章未关联分类异常码
     */
    public static final String POST_NOT_LINKED_CATEGORY = "20202";

    /**
     * 友链已存在异常码
     */
    public static final String FRIENDLINK_ALREADY_EXISTS = "20301";

    /**
     * 友链不存在异常码
     */
    public static final String FRIENDLINK_NOT_EXISTS = "20302";

    /**
     * 文章已存在异常码
     */
    public static final String POST_ALREADY_EXISTS = "20401";

    /**
     * 文章不存在异常码
     */
    public static final String POST_NOT_EXISTS = "20402";

    /**
     * 文章分类插入失败异常码
     */
    public static final String POST_CATEGORY_INSERT_ERROR = "20403";

    /**
     * 文章标签插入失败异常码
     */
    public static final String POST_TAG_INSERT_ERROR = "20404";

    /**
     * 文章详情插入失败异常码
     */
    public static final String POST_DETAIL_INSERT_ERROR = "20405";

    /**
     * 文章交互数据插入失败异常码
     */
    public static final String POST_METRIC_INSERT_ERROR = "20406";


    /**
     * 文章分类插入失败异常码
     */
    public static final String POST_CATEGORY_DELETE_ERROR = "20407";

    /**
     * 文章标签插入失败异常码
     */
    public static final String POST_TAG_DELETE_ERROR = "20408";

    /**
     * 文章详情插入失败异常码
     */
    public static final String POST_DETAIL_DELETE_ERROR = "20409";

    /**
     * 文章交互数据插入失败异常码
     */
    public static final String POST_METRIC_DELETE_ERROR = "20410";

    /**
     * 文章详情不存在异常码
     */
    public static final String POST_DETAIL_NOT_EXISTS = "20501";

    /**
     * 配置项不存在异常码
     */
    public static final String CONFIG_NOT_EXISTS = "20601";
}
